package fr.afcepf.atod19.dreamproject.business.implementation;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.transaction.annotation.Transactional;

import fr.afcepf.atod19.dreamproject.business.interfaces.TestIBusinessClient;
import fr.afcepf.atod19.dreamproject.dao.interfaces.TestIDaoClient;
import fr.afcepf.atod19.dreamproject.entity.Client;

public class TestBusinessClient implements TestIBusinessClient{
	
	static Logger logger = LoggerFactory.getLogger(TestBusinessClient.class);
	private TestIDaoClient testClient;
	
	/**
	 * @param c
	 */
	


	@Transactional
	@Override
	public int createClient(Client c) {
		System.out.println("test création client");
		return testClient.createClient(c);
	}

	public TestBusinessClient() {
		System.out.println("Création du testDaoClient");
	}

	public void setTestClient(TestIDaoClient testClient) {
		System.out.println("passage dans le setter du testDaoClient");
		System.out.println(testClient);
		this.testClient = testClient;
	}

	public TestIDaoClient getTestClient() {
		return testClient;
	}
	 
}
